Page({
    data: {
        type: "face",
        gender: "",
        age: "",
        beauty: "",
        img_url: ""
    },
    onLoad: function(e) {
        console.log("face/shared.onload"), console.log(e), this.setData({
            img_url: e.img_url,
            gender: e.gender,
            age: e.age,
            beauty: e.beauty
        });
    },
    onReady: function() {},
    onShow: function() {},
    toFace: function() {
        wx.redirectTo({
            url: "/pages/facade/facade?type=face"
        });
    },
    toHome: function() {
        wx.switchTab({
            url: "/pages/index/index"
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});